<!--组件-开放跟单设置-->
<template>
  <div>
    <div class="bg" v-if="isShow">
      <div class="line bg3"></div>
      
      <LSwitc class="switc" v-model="isOpenFollow_c" :title="T('开放策略跟单')"></LSwitc>
      <div class="height40"></div>
      <!--跟单设置-->
      <div v-if="isOpenFollow_c">
        <div class="row acenter" >
          <text class="font28 main-t1" @click="follwSetClick">{{T('更多跟单设置')+' >>'}}</text>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//组件
import LSwitc from "@/public/view/LSwitc.vue";

//功能
import navigator from "@/_js/navigator"; 
const globalEvent = weex.requireModule('globalEvent');

import I18N from "@/_i18n/i18n";
var T = I18N.t;

export default {

  components: {
    LSwitc,
  },


  model:{
    prop:"isShow",
    event:"change",
  },

  props:{

    isShow:{ //turn显示
      type:Boolean,
      default:false,
    },

    isOpenFollow:Boolean, //true 开放跟单
  },
  
  data() {
    return {
      T:T,
      isOpenFollow_c:this.isOpenFollow?this.isOpenFollow:true,
    };
  },

  mounted(){
  },

  methods:{
    /********************************** 对外开放方法*/
    //刷新视图
    refresh(){
      this.isOpenFollow_c = true;
    },

    //获取参数
    getParam(){
      var param = {'isOpenFollow':this.isOpenFollow_c};
      return param;
    },

    /********************************** 点击触发*/
    //跟单设置
    follwSetClick() {
      this.$emit("follwSetClick");
    },
  }
}
</script>


<style src="@/_css/style.css"></style>
<style scoped>
.bg{
  width: 670px;
}
.line{
  width: 710px;
  height: 1px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.switc{
  width: 670px;
}
.height40{
  height: 40px;
}
</style>
